﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 考核七
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if(radioButton1.Checked)
            {
                string str = (Math.Sin(Convert.ToInt32(textBox1.Text))).ToString();
                textBox2.Text = str;
            }
            if (radioButton2.Checked)
            {
                string str = (Math.Cos(Convert.ToInt32(textBox1.Text))).ToString();
                textBox2.Text = str;
            }
        }

        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
